package com.ez.supervise.model.sys;

import com.ez.supervise.model.base.BaseEntity;

/**
 * @author searph.wang
 * @email searph.wang@gmail.com
 * @Created at 2009-7-22
 * 
 */
public class Org extends BaseEntity {

	private static final long serialVersionUID = -5816581459790563308L;
	private String name; // 部门名称
	private String orgType;// 组织类型
	// unit：垂直管理单位，dept：机关，town：乡镇，project：工业园区管委会和工程建设指挥部

	private Long parentId;// 父组织id
	private Integer orgLevel;// 组织在组织树中的层次（第几层）
	private Integer orgOrder;// 排序号
	private String isLeaf;// y:是叶子节点，n：不是叶子节点

	private String fullIdPath;
	private String fullNamePath;
	private String memo;

	public static final String ORG_TYPE_UNIT = "unit";// 垂直管理单位
	public static final String ORG_TYPE_DEPT = "dept";// 机关
	public static final String ORG_TYPE_TOWN = "town";// 乡镇
	public static final String ORG_TYPE_PROJECT = "project";// 工业园区管委会和工程建设指挥部

	public Org() {
		super();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getOrgType() {
		return orgType;
	}

	public void setOrgType(String orgType) {
		this.orgType = orgType;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Integer getOrgLevel() {
		return orgLevel;
	}

	public void setOrgLevel(Integer orgLevel) {
		this.orgLevel = orgLevel;
	}

	public Integer getOrgOrder() {
		return orgOrder;
	}

	public void setOrgOrder(Integer orgOrder) {
		this.orgOrder = orgOrder;
	}

	public String getIsLeaf() {
		return isLeaf;
	}

	public void setIsLeaf(String isLeaf) {
		this.isLeaf = isLeaf;
	}

	public String getFullIdPath() {
		return fullIdPath;
	}

	public void setFullIdPath(String fullIdPath) {
		this.fullIdPath = fullIdPath;
	}

	public String getFullNamePath() {
		return fullNamePath;
	}

	public void setFullNamePath(String fullNamePath) {
		this.fullNamePath = fullNamePath;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
}
